<#assign menu="user">
<#assign submenu="user_list">
<#include "/system/head.ftl">
<!--main content start-->
<style type="text/css">

</style>
<section id="main-content">
	<section class="wrapper">
		<!-- page start-->
		<form id="update_goodsCallBackOrder_form" class="form-horizontal" action="${basePath}/admin/user/updateGoodsCallBackOrderJson.json"  autocomplete="off"  method="post"
			enctype="multipart/form-data">
		<div class="row">
			<div class="col-lg-12">
				<section class="panel">
					<header class="panel-heading"> 
						处理审核返现
					</header>
					<div class="panel-body">
					<input type="hidden" name="userCallBackGoods.id" value="${userCallBackGoods.id?c}" id="userCallBackGoods" />
						<div class="form-group">
                          <label class="col-sm-2 col-sm-2 control-label">订单号</label>
                          <div class="col-sm-10">
                              <input type="text" style="font-size:15px;width: 300px;" class="form-control" name="userCallBackGoods.goodsOrderNum"
                              	placeholder="订单号" id="userName" value="${userCallBackGoods.goodsOrderNum}" >
                              </input>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 col-sm-2 control-label">商品名称</label>
                          <div class="col-sm-10">
                              <input type="text" style="font-size:15px;width: 300px;" class="form-control" name="userCallBackGoods.goodsItemEntity.title"
                              	placeholder="可用金额" id="goodsItemEntity" value="<#if (userCallBackGoods.goodsItemEntity??)&&(userCallBackGoods.goodsItemEntity.title??)>${userCallBackGoods.goodsItemEntity.title}</#if>" >
                              </input>
                          </div>
                        </div>
                       <div class="form-group">
                          <label class="col-sm-2 col-sm-2 control-label">返佣比例</label>
                          <div class="col-sm-10">
                              <input type="text" style="font-size:15px;width: 300px;" class="form-control" name="userCallBackGoods.goodsItemEntity.productCommission"
                              	placeholder="返佣比例" id="goodsItemEntity.goodsItemEntity.productCommission" value="${userCallBackGoods.goodsItemEntity.productCommission}" >
                              </input>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 col-sm-2 control-label">审核状态</label>
                           <div class="col-sm-10">
                          	<label class="radio-inline">
                        		<input type="radio" name="userCallBackGoods.status" value="1" <#if (userCallBackGoods.status==1)>checked</#if>/> 审核通过
                      		</label>
                      		<label class="radio-inline">
                        		<input type="radio" name="userCallBackGoods.status" value="-1" <#if (userCallBackGoods.status==-1)>checked</#if>/> 审核不通过
                      		</label>
                      		<label class="radio-inline">
                        		<input type="radio" name="userCallBackGoods.status" value="0" <#if (userCallBackGoods.status==0)>checked</#if>/> 待审核
                      		</label>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 col-sm-2 control-label">返佣金额</label>
                          <div class="col-sm-10">
                              <input type="text" style="font-size:15px;width: 300px;" class="form-control" name="userCallBackGoods.callBackMoney"
                              	placeholder="返佣金额" id="goodsItemEntity.callBackMoney" value="${userCallBackGoods.callBackMoney}" >
                              </input>
                          </div>
                        </div>
                         <div class="form-group">
                          <label class="col-sm-2 col-sm-2 control-label">返佣金币数</label>
                          <div class="col-sm-10">
                              <input type="text" style="font-size:15px;width: 300px;" class="form-control" name="userCallBackGoods.callBackGold"
                              	placeholder="返佣金币数" id="goodsItemEntity.callBackGold" value="${userCallBackGoods.callBackGold}" >
                              </input>
                          </div>
                        </div>
                        <div class="form-group">
                          <label class="col-sm-2 col-sm-2 control-label">审核消息</label>
                          <div class="col-sm-10">
                              <input type="text" style="font-size:15px;width: 300px;" class="form-control" name="userCallBackGoods.passMsg"
                              	placeholder="审核消息" id="title" value="<#if userCallBackGoods.passMsg??>${userCallBackGoods.passMsg}</#if>" >
                              </input>
                          </div>
                        </div>
                        <div class="form-group">
                      	  <div class="col-lg-offset-2 col-lg-10">
                      	  <#if (userCallBackGoods.status==0)>
                          <button class="btn btn-shadow btn-primary" type="submit">审核</button>
                          </#if>
                          <button class="btn btn-danger" onclick="javascript:window.history.go(-1);" type="button">返回</button>
                          </div>
                      </div>
					</div>
				</section>
			</div>
		</div>
		</form>
		<!-- page end-->
	</section>
</section>
<!--main content end-->
<script type="text/javascript" charset="utf-8" src="${basePath}/system/assets/uploadify/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="${basePath}/system/assets/uploadify/jquery.uploadify.min.js"></script>

<script type="text/javascript">
$(function(){
	$('#update_goodsCallBackOrder_form').ajaxForm({
		dataType : 'json',
		success : function(data) {
			if (data.result) {
				bootbox.alert("保存成功，将刷新页面", function() {
					window.location.reload();
					
				});
			}else{
				showErrors($('#update_goodsCallBackOrder_form'),data.errors);
			}
		},
		error:function(data,textstatus){
	        bootbox.alert({  
	            buttons: {  
	               ok: {  
	                    label: '关闭'
	               }  
	            },
	            message: data.responseText,
	            title: '<@spring.message "system.errorTip"/>',  
	        });
	     } 
	});
	
});
</script>
<#include "/system/foot.ftl">
